<?php

class Venues extends Illuminate\Database\Eloquent\Model {
    protected $table = "laskiga_Venues";
    protected $primaryKey = "venue_id";
    
    public static function get_name($id) {
        $venue = Venues::find($id);
        return $venue->venue_name;
    }
    public static function get_id($name) {
        $venue = Venues::where('venue_name', '=', $name)->first();
        return $venue->venue_id;
    }
    public static function get_all() {
        $columns = array(
            'venue_id',
            'venue_name',
            'venue_order_number',
            'updated_at'
        );
        $venues = Venues::all($columns);
        return $venues;
    }
    public static function get_row($id){
        $venue = Venues::find($id);
        return $venue;
    }
}